package de.justphil.tcg.tcgserver.commons.domain.complete;

import java.util.Date;
import java.util.Set;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class CGame {
	
	@XmlElement
	private long id;
	
	@XmlElement
	private long winner;
	
	@XmlElement
	private Set<Long> players;
	
	@XmlElement
	private int state;
	
	@XmlElement
	private Date created;
	
	@XmlElement
	private Date modified;

	
	public CGame() {
		// JAXB conformity
	}
	
	public CGame(long id, long winner, Set<Long> players, int state,
			Date created, Date modified) {
		super();
		this.id = id;
		this.winner = winner;
		this.players = players;
		this.state = state;
		this.created = created;
		this.modified = modified;
	}
	
	
	
	/* ######################################################################## */
	/* ######################################################################## */
	/* ######################################################################## */

	
	
	public long getId() {
		return id;
	}

	public long getWinner() {
		return winner;
	}

	public Set<Long> getPlayers() {
		return players;
	}

	public int getState() {
		return state;
	}

	public Date getCreated() {
		return created;
	}

	public Date getModified() {
		return modified;
	}
	
	
	
	/* ######################################################################## */
	/* ######################################################################## */
	/* ######################################################################## */

	
	
	
	public void setId(long id) {
		this.id = id;
	}

	public void setWinner(long winner) {
		this.winner = winner;
	}

	public void setPlayers(Set<Long> players) {
		this.players = players;
	}

	public void setState(int state) {
		this.state = state;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}
	
	
	
	
	
}
